﻿using System.Web;
using System.Web.Optimization;

namespace LanhuCms.Web
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));

            bundles.Add(new StyleBundle("~/AdminLTE/Content/css").Include(
                      "~/AdminLTE/bootstrap/css/bootstrap.min.css"
                      , "~/AdminLTE/FontAwesome/css/font-awesome.min.css"
                      , "~/AdminLTE/ionicons/css/ionicons.min.css"
                      , "~/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.css"
                      , "~/AdminLTE/dist/css/AdminLTE.min.css"
                      , "~/AdminLTE/dist/css/skins/_all-skins.min.css"
                      //, "~/lib/bootstrap/css/bootstrap.css" //此处引用会报错
                      //, "~/lib/fontawesome/css/font-awesome.min.css"
                      , "~/lib/durandal/css/durandal.css"
                      ));

            bundles.Add(new ScriptBundle("~/AdminLTE/bundles/js").Include(
                      "~/AdminLTE/plugins/jQuery/jquery-2.2.3.min.js"
                      , "~/AdminLTE/bootstrap/js/bootstrap.min.js"
                      , "~/AdminLTE/plugins/fastclick/fastclick.js"
                      , "~/AdminLTE/dist/js/app.min.js"
                      , "~/AdminLTE/plugins/sparkline/jquery.sparkline.min.js"
                      , "~/AdminLTE/jvectormap/jquery-jvectormap-1.2.2.min.js"
                      , "~/AdminLTE/jvectormap/jquery-jvectormap-world-mill-en.js"
                      , "~/AdminLTE/slimScroll/jquery.slimscroll.min.js"
                      , "~/AdminLTE/plugins/chartjs/Chart.min.js"
                      , "~/Scripts/director.min.js"
                      ));
        }
    }
}
